package com.mp3player.util;

import java.io.File;

/**
 * Created by Cuckoo322 on 3/20/2017.
 */

public class MetaData {
    public static String HOST = "192.168.150.1";
    public static String PORT = "80";
    public static String getXmlUrl() {
        return "http://"+HOST+":"+PORT+"/resources.xml";
    }
    public static void setHost(String host) {
        HOST = host;
    }
    public static void setPort(String port) {
        PORT = port;
    }
    public static String getMusicUrl() {
        return "http://"+HOST+":"+PORT+"/music/";
    }
    public static String getLrcUrl() {
        return "http://"+HOST+":"+PORT+"/lrc/";
    }

    public static File root = null;

    public static String MP3_NAME_COLUMN = "mp3_name";
    public static String MP3_SIZE_COLUMN = "mp3_size";
    public static String MP3_INFO_KEY = "mp3Info";

    public static String DOWNLOAD_FINISH = "下载完成";
    public static String DOWNLOAD_ERROR = "下载出错";

    public static String SAVE_DIR = "music/";

    public static int START_PLAYING = 1;
    public static int PAUSE_PLAYING = 2;
    public static String PLAYING_STATUS_KEY = "playing_status";
    public static String PLAY_STATUS_ACTION = "com.mp3player.service.PlayMp3Service.play_status";
    public static String INTENT_CATEGORY = "intent_category";
    public static int START_SERVICE = 1;
    public static int SWITCH_MP3_STATUS = 2;

    public static String UPDATE_LYRIC_ACTION = "com.mp3player.service.PlayMp3Service.update_lyric";
    public static String LAST_LYRIC_KEY = "last_lyric";
    public static String UPDATE_LYRIC_KEY = "update_lyric";
    public static String NEXT_LYRIC_KEY = "next_lyric";

    public static String COMMAND_FOR_PLAY_SERVICE_ACTION = "com.mp3player.service.PlayActivity.command_for_service";
    public static String STOP_COMMAND_KEY = "stop";
    public static int STOP_SERVICE_COMMAND = 1;

    public static String PLAY_POSITION_ACTION = "com.mp3player.service.PlayMp3Service.play_position";
    public static String PLAY_POSITION_KEY = "play_position";
    public static String TOTAL_PLAY_TIME_KEY = "total_play_time";

    public static String SEEK_POSITION_ACTION = "com.mp3player.service.PlayMp3Service.seek_position";
    public static String SEEK_POSITION_KEY = "seek_position";
}
